package com.tfswue.group.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("`order`")  // 使用反引号，因为order是SQL关键字
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String orderNo;

    private Integer userId;

    private Integer sellerId;

    private Integer productId;

    private BigDecimal amount;

    private Integer status;

    private String address;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;
}